package com.sina.interfaces.manage.service.sys;



import com.sina.interfaces.core.BaseService;
import com.sina.interfaces.core.exception.client.DataException;
import com.sina.interfaces.core.exception.server.CreateException;
import com.sina.interfaces.core.exception.server.ResourceExistsException;
import com.sina.interfaces.core.exception.server.UpdateException;
import com.sina.interfaces.domain.sys.Admin;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-10-30-12:33
 */
public interface AdminManageService extends BaseService {

    Admin getAdminByName(String name);

    Admin getAdmin(String name);

    Admin getAdmin(Integer id);

    int deleteAdmin(Integer id) throws DataException, UpdateException;

    Admin updateAdmin(Admin admin) throws UpdateException, DataException;

    Admin saveAdmin(Admin admin) throws CreateException, ResourceExistsException, DataException;

    List<Map<String, Object>> getAdminList(Admin admin, long count[]);

}
